package edu.zzu.Entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name="PackageRoute")
public class PackageRoute {

    @Id
    private Long id;

    @Column(name="PackageId")
    private String packageId;

    private String time;

    @Column(name="TransNodeId")
    private Long transNodeId;

    private Long handler;

    private Integer status;

    private Float x;

    private Float y;

    public PackageRoute() {
    }

    public PackageRoute(Long id, String packageId, String time, Long transNodeId, Long handler, Integer status) {
        this.id = id;
        this.packageId = packageId;
        this.time = time;
        this.transNodeId = transNodeId;
        this.handler = handler;
        this.status = status;
    }

    public PackageRoute(Long id, String packageId, String time, Long transNodeId, Long handler, Integer status, Float x, Float y) {
        this.id = id;
        this.packageId = packageId;
        this.time = time;
        this.transNodeId = transNodeId;
        this.handler = handler;
        this.status = status;
        this.x = x;
        this.y = y;
    }
}
